<template>
  <div class="f">
    <h2>01-特性继承</h2>
    <h3>父组件</h3>
    <son :msg="msg" :age="age" placeholder="请输入内容" />
  </div>
</template>

<script>
import son from './son.vue'
export default {
  data () {
    return {
      msg: 'father',
      age: 19
    }
  },
  components: {
    son
  },
  created () {
    console.log('重新再创建一个组件')
  },
  destroyed () {
    console.log('--------------------destroyed--------------------')
  }
}
</script>

<style></style>
